package com.ruoyi.bl.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商户广告对象 bl_ad
 *
 * @author ruoyi
 * @date 2024-12-08
 */
public class BlAd extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 广告id */
    private Long adId;

    /** 机构ID */
    @Excel(name = "机构ID")
    private Long deptId;

    /**  */
    @Excel(name = "")
    private Integer catId;

    /** 广告位置ID */
    @Excel(name = "广告位置ID")
    private Long pid;

    /** 广告类型 */
    @Excel(name = "广告类型")
    private Integer mediaType;

    /** 广告类型（bl_adtype_type 的id） */
    @Excel(name = "广告类型", readConverterExp = "b=l_adtype_type,的=id")
    private Integer adTypeId;

    /** 广告名称 */
    @Excel(name = "广告名称")
    private String adName;

    /** 链接地址 */
    @Excel(name = "链接地址")
    private String adLink;

    /** 广告图片 */
    @Excel(name = "广告图片")
    private String adImg;

    /** 投放时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "投放时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 添加人 */
    @Excel(name = "添加人")
    private String linkMan;

    /** 添加人邮箱 */
    @Excel(name = "添加人邮箱")
    private String linkEmail;

    /** 添加人联系电话 */
    @Excel(name = "添加人联系电话")
    private String linkPhone;

    /** 点击量 */
    @Excel(name = "点击量")
    private Integer clickCount;

    /** 是否显示 */
    @Excel(name = "是否显示")
    private Integer enabled;

    /** 排序 */
    @Excel(name = "排序")
    private Integer orderby;

    /** 是否开启浏览器新窗口 */
    @Excel(name = "是否开启浏览器新窗口")
    private Integer target;

    /** 背景颜色 */
    @Excel(name = "背景颜色")
    private String bgcolor;

    /** 广告描述 */
    @Excel(name = "广告描述")
    private String content;

    /** 文章ID */
    @Excel(name = "文章ID")
    private Integer articleId;

    /**  */
    @Excel(name = "")
    private String code;

    public void setAdId(Long adId)
    {
        this.adId = adId;
    }

    public Long getAdId()
    {
        return adId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setCatId(Integer catId)
    {
        this.catId = catId;
    }

    public Integer getCatId()
    {
        return catId;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }
    public void setMediaType(Integer mediaType)
    {
        this.mediaType = mediaType;
    }

    public Integer getMediaType()
    {
        return mediaType;
    }
    public void setAdTypeId(Integer adTypeId)
    {
        this.adTypeId = adTypeId;
    }

    public Integer getAdTypeId()
    {
        return adTypeId;
    }
    public void setAdName(String adName)
    {
        this.adName = adName;
    }

    public String getAdName()
    {
        return adName;
    }
    public void setAdLink(String adLink)
    {
        this.adLink = adLink;
    }

    public String getAdLink()
    {
        return adLink;
    }
    public void setAdImg(String adImg)
    {
        this.adImg = adImg;
    }

    public String getAdImg()
    {
        return adImg;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setLinkMan(String linkMan)
    {
        this.linkMan = linkMan;
    }

    public String getLinkMan()
    {
        return linkMan;
    }
    public void setLinkEmail(String linkEmail)
    {
        this.linkEmail = linkEmail;
    }

    public String getLinkEmail()
    {
        return linkEmail;
    }
    public void setLinkPhone(String linkPhone)
    {
        this.linkPhone = linkPhone;
    }

    public String getLinkPhone()
    {
        return linkPhone;
    }
    public void setClickCount(Integer clickCount)
    {
        this.clickCount = clickCount;
    }

    public Integer getClickCount()
    {
        return clickCount;
    }
    public void setEnabled(Integer enabled)
    {
        this.enabled = enabled;
    }

    public Integer getEnabled()
    {
        return enabled;
    }
    public void setOrderby(Integer orderby)
    {
        this.orderby = orderby;
    }

    public Integer getOrderby()
    {
        return orderby;
    }
    public void setTarget(Integer target)
    {
        this.target = target;
    }

    public Integer getTarget()
    {
        return target;
    }
    public void setBgcolor(String bgcolor)
    {
        this.bgcolor = bgcolor;
    }

    public String getBgcolor()
    {
        return bgcolor;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setArticleId(Integer articleId)
    {
        this.articleId = articleId;
    }

    public Integer getArticleId()
    {
        return articleId;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("adId", getAdId())
                .append("deptId", getDeptId())
                .append("catId", getCatId())
                .append("pid", getPid())
                .append("mediaType", getMediaType())
                .append("adTypeId", getAdTypeId())
                .append("adName", getAdName())
                .append("adLink", getAdLink())
                .append("adImg", getAdImg())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("linkMan", getLinkMan())
                .append("linkEmail", getLinkEmail())
                .append("linkPhone", getLinkPhone())
                .append("clickCount", getClickCount())
                .append("enabled", getEnabled())
                .append("orderby", getOrderby())
                .append("target", getTarget())
                .append("bgcolor", getBgcolor())
                .append("content", getContent())
                .append("articleId", getArticleId())
                .append("code", getCode())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
